package com.gmail.liulijuan.class5;

import java.util.ArrayList;
import java.util.Scanner;

import com.gmail.liulijuan.class2.Sorter;

public class MainApp {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		ArrayList a=new ArrayList();
		for (int i = 0; i < 10; i++) {
			Scanner sc=new Scanner(System.in);
			a.add(sc.nextLine());
		}
		SorterInt aa= new SorterInt(a);
		
		a=aa.sortMaoPao(0);
		for (Object bb:a) {
			System.out.printf("%4d",Integer.valueOf(bb.toString()));
			
		}

	}

}
